<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.scott.user.utils.DBUtil"%>
<%@ page import="java.sql.Connection"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>数据库连接测试页面</title>
		
		<style>
		
			*{
				font-size: 12px;
				font-family: "微软雅黑";
			}
		
		</style>
	</head>
	
	<body>
	
		<font color="red">数据库连接测试页面</font>
		<br/><br/>
		
		
		<%
			Connection connection = DBUtil.getConnection();
		
			//
			if(connection !=null){
				out.print("数据库连接成功...");
			}else{
				out.print("数据库连接失败...");
			}
		%>
		
		
		<br/><br/>
		<a href="main.jsp">返回主页面</a><br/>
	
	</body>
</html>